package com.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.demo.dao.ProjectDAO;
import com.demo.model.Project;
import com.demo.service.ProjectService;
 
 
 
@Service
public class ProjectServiceImpl implements ProjectService{
 
    @Autowired
    private ProjectDAO projectDAO;

	public int deleteByPrimaryKey(Integer id) {
		int n = projectDAO.deleteByPrimaryKey(id);
		return 0;
	}

	public int insert(Project project) {
		int n = projectDAO.insert(project);
		return n;
	}

	public int insertSelective(Project record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int updateByPrimaryKeySelective(Project record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int updateByPrimaryKey(Project record) {
		int n = projectDAO.updateByPrimaryKey(record);
		return 0;
	}

	public List<Project> selectAll() {
		List<Project> projectList = projectDAO.selectAll();
		return projectList;
	}

	public List<Project> selectLike(String name,Integer fuzeren) {
		List<Project> projectList = projectDAO.selectLike(name, fuzeren);
		return projectList;
	}

	public Project selectById(Integer id) {
		Project project = projectDAO.selectById(id);
		return project;
	}
  
 
}